﻿Ext.define('app.prm.detail.Center', {
    extend: 'Ext.panel.Panel',
    region: 'center',
    split: true,
    border: true,
    layout: 'fit',
    projectId: 0,
    initComponent: function () {
        var me = this;
        me.items = [me.getTabPanel()];
        me.callParent();
    },
    getTabPanel: function () {
        var me = this;
        if (!this.tabPanel) {
            this.tabPanel = new Ext.tab.Panel({
                border: false,
                layout: 'fit',
                items: [
                    { title: '项目计划', border: false, html: '<iframe src="/Gannt/Home/Index?hideHeader=' + true + '" width="100%" height="100%" scrolling="no" frameborder="0"></iframe>' },
                    {
                        title: '项目进度', border: false, items: [
                            Ext.create("app.prm.detail.ProgressList", { projectId: me.projectId })
                        ]
                    },
                    //{ title: '成员评价', border: false, html: '成员评价' },
                    //{ title: '项目评价', border: false, html: '项目评价' },
                    {
                        title: '项目动态', border: false, items: [
                            Ext.create("app.prm.detail.OperatorLog", { projectId: me.projectId })
                        ]
                    }
                ]
            });
        }
        return this.tabPanel;
    }
})